//
//  CUploadPreView.h
//  HCHK_iphone
//
//  Created by yilong zhang on 12-2-9.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>

//========================================================================================================================

@protocol UploadPreViewDelegate <NSObject>

@optional
-(void)DidUploaPreViewAtived:(UIView*)view Commond:(int)command Value1:(id)value1;

@end

//========================================================================================================================

@interface CUploadPreView : UIView <UIScrollViewDelegate>

@property (nonatomic, assign) id<UploadPreViewDelegate> delegate;

@property (nonatomic, assign) UIScrollView              *m_Scroll;
@property (nonatomic, assign) UIImageView               *m_ImgView;
@property (nonatomic, assign) UIImageView               *m_CutView;
@property (nonatomic, assign) UIActivityIndicatorView   *m_Indicator;
@property (nonatomic, assign) CGPoint       m_Point;

@property (nonatomic, assign) UIButton  *m_ReTake;
@property (nonatomic, assign) UIButton  *m_TakeAgain;
@property (nonatomic, assign) UIButton  *m_Used;

-(id)initWithFrame:(CGRect)frame Size:(CGSize)size Cancel:(BOOL)iscancel;
-(void)OnButtonDown:(UIButton*)sender;
-(void)SetImage:(UIImage*)image;

@end
